class Opinion < ActiveRecord::Base
    validates_presence_of :user_id,:message =>"是人是鬼!"  
    validates_presence_of :enterprise_id,:message =>"商家不能为空!"

end